<SCRIPT type="text/javascript">
	var setting = {
		data: {
			simpleData: {
				enable: true
			}
		},
		check: {
	        enable: true
		 },
		callback: {
			onExpand: function(){
				if (treeNiceScroll) {
					treeNiceScroll.resize();
				}
			},
			onClick:onClick
		},
		view: {
			showLine: false
		}
	};
	var zNodes1 =[
      		{ id:"0", pId:0, name:"用户分组", open:true, icon:"/assets/images/icon-file-closed.png", url:"/${orgi}/manage/account/index.html",target:"_self"}
      		<#if organList??>
      		<#list organList as organ>
      		,{ id:"${organ.id!''}", pId:"${organ.parentid!''}", name:"${organ.name!''}", icon:"/assets/images/usergroup.png" , url:"/${orgi}/manage/account/list/${organ.id!''}.html",target:"_self"}
      		</#list>
      		</#if>
	];
	
	function onClick(event, treeId, treeNode, clickFlag) {
		$("#userList_tbody").html("<td colspan='4'>正在加载数据...</td>");
		loadURL("/${orgi}/user/report/${tabid}/ogranselect/"+treeNode.id+".html",$("#userList_tbody") , null);
	}	
	ztree = $.fn.zTree.init($(document.getElementById("zTree_level_organ_LIst")), setting, zNodes1);
	//页面初始化数据，选中默认的群组，并查询出该群组下的用户
	ztree.selectNode(ztree.getNodeByParam("id", "0", null));
</SCRIPT>
<div id="authselect_div" style="padding:3px;min-height:130px; display: none;">
	<div class="middleArt">
	<form class="form-horizontal" data-toggle="form" id="userimportForm" action="" method="post">
		<div class="artMain">
			<div class="mainCenter">
				<div class="dialogWrapper_0313">
					<table class="spliptHalf_0313">
						<tr>
							<td class="spwrap" style="width: 30px;">
								<div class="lftTreeWrap setScroll">
									<ul>
									<listyle="width:100px;height:100px;text-align:center;padding-top: 50%;">
										<a href="javascript:void(0)" onclick="loadURL('/rivues/user/report/0/organ/selUser.html','#seluser',function(){hideMenu();})"><i class="imgIco-15"></i></a>
										<a href="#">角色分组</a>
									</li>
									<li  class="cur"  style="width:100px;height:100px;text-align:center;padding-top: 50%;">
										<a href="javascript:void(0)" onclick="loadURL('/rivues/user/report/0/role/selUser.html','#seluser',function(){hideMenu();})"><i class="imgIco-15"></i></a>
										<a href="#">组织分组</a>
									</li>
								</ul>
								</div>
							</td>
							<td class="spwrap">
								<div class="lftTreeWrap setScroll">
									<div class="ztree" id="zTree_level_organ_LIst"></div>
								</div>
							</td>
							<td class="spwrapright">
								<div class="lftTreeWrap setScroll">
								<table class="table_style_1">
									<thead>
										<tr>
											<th>&nbsp;&nbsp;&nbsp;&nbsp;</th>
											<th><i class="verMidWrap">用户姓名</i><i class="tbArrow"></i></th>
											<th><i class="verMidWrap">创建时间</i><i class="tbArrow"></i></th>
										</tr>
									</thead>
									<tbody id="userList_tbody">
									<#if organList ??>
											<#list organList as organ>
												<tr>
													<td class="tdIcons"><input type="checkbox" name="userownerids" value="${group.id!''}"/></td>
													<td >${organ.name!''}</td>
													<td >${organ.createtime?string("yyyy-MM-dd HH:mm:ss")}</td>
												</tr>
											</#list>
										</#if>
									</tbody>
								</table>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		</form>
	</div>
</div>	

																	
																